﻿using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;

namespace WpfApp1;

public partial class TextWindowViewModel: ObservableObject
{
    
    
    [ObservableProperty]
    private string _text="MVVM初始值";
    
    [RelayCommand]
    private void UpdateText2()
    {
        this.Text="MVVM change value";
    }
    

    
}